#关闭umtprd
echo > /sys/kernel/config/usb_gadget/g1/UDC
start-stop-daemon -K -q -p /var/run/umtprd.pid -x /usr/sbin/umtprd

mount -t configfs none /sys/kernel/config
cd /sys/kernel/config/usb_gadget/
mkdir gg
cd gg
echo "0x0502" > idVendor
echo "0x3235" > idProduct
mkdir functions/rndis.rn0
mkdir configs/c1.1
ln -s functions/rndis.rn0 configs/c1.1/
echo "musb-hdrc.1.auto" > UDC

ifconfig usb0 up
ifconfig usb0 192.168.137.5 netmask 255.255.255.0
route add default gw 192.168.137.1
echo 'nameserver 8.8.8.8' >/etc/resolv.conf



